Early Preview

This is currently very much a preview. Please feel free to try things out, but don't be upset if anything is not yet working. Feedback is welcome over on our GitHub Dicussions page.

interface System.​ISpanParsable<​TSelf>

Assembly: System.Runtime

Implemented Interfaces

Defines a mechanism for parsing a span of characters to a value.

Methods

static TSelf
Parse​(ReadOnlySpan<​char> s, IFormatProvider? provider)
Parses a span of characters into a value.
Returns The result of parsing <paramref name="s" /> .
s The span of characters to parse.
provider An object that provides culture-specific formatting information about <paramref name="s" /> .
static bool
TryParse​(ReadOnlySpan<​char> s, IFormatProvider? provider, TSelf& result)